package com.chare.Controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.chare.pojo.Admin;
import com.chare.service.IAdminService;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/chat")
public class ChatController {
    @Autowired
    private IAdminService adminService;
    @ApiModelProperty(value = "获取所有操作员")
    @GetMapping("/admin")
    public List<Admin> getAllHrs(String keywords) {

        return adminService.getAllAdmin(keywords);
    }
}
